Odchylka\ přímky\ BS\ a\ roviny\ ABF
\r=\sqrt{{(\frac{a}{2})^2+c^2}}
\ \left| S_1S \right|=\frac{b}{2}
\\ tgα=\frac{\left|SS_1  \right| }{r}=\frac{\frac{b}{2}}{\sqrt{(\frac{a}{2})^{2}+c^2}}

Odchylka\ přímky\ BS\ a \ roviny\ BCG
\ t=\sqrt{{(\frac{b}{2})^2+c^2}}
\ \left| S_2S \right|=\frac{a}{2}
\ tgα=\frac{\left|SS_2  \right| }{t}=\frac{\frac{a}{2}}{\sqrt{(\frac{b}{2})^{2}+c^2}}

Je\ dán\ kvádr\ ABCDEFGH,\ |AB|=a,\ |BC|=b,\ |AE|=c,
\Označme\ S\ střed\ horní\ podstavy. 
\Určeme\ konstrukčně\ i\ početně\ odchylku\ přímky\ BS\ a\ roviny\ ABF,\ BCG.

A = (-2.272705069577679, -1.3905236378513575, 0)
B = (1.8945859376623897, -1.7979139470505938, 0)
f = Line(A, B)
g = OrthogonalLine(A, f, xOyPlane)
D = Point(g)
h = OrthogonalLine(D, g, xOyPlane)
i = OrthogonalLine(B, f, xOyPlane)
C = Intersect(h, i)
mnohoúhelník1, a, b_1, a_2, d = Polygon(A, B, C, D)
e, E, F, G, H, stenaABFE, stenaBCGF, stenaCDHG, stenaADHE, stenaEFGH, c_1, c, hranaCG, hranaDH, hranaEF, hranaFG, hranaGH, hranaEH = Prism(mnohoúhelník1, 4.9325595458318)
S_3 = Line(H, F)
k_1 = Line(E, G)
S = Intersect(S_3, k_1)
j = Plane(A, B, F)
l = Plane(B, C, G)
b = Line(S, B)
m = OrthogonalLine(S, stenaABFE)
n = OrthogonalLine(S, stenaBCGF)
S_1 = Intersect(m, hranaEF)
S_2 = Intersect(hranaFG, n)
p = Line(S_1, B)
q = Line(S_2, B)
α = Angle(S_1, B, S)
β = Angle(S, B, S_2)
γ = Angle(g, b_1)
a_{půl} = Segment(S_1, F)
r = Segment(S_1, B)
text1: "a/2=" + a_{půl} + ""
mnohoúhelník2, i_1, s_1, b_2 = Polygon(S_1, B, S)
t = Segment(B, S_2)
δ = Angle(S, S_1, B)
ε = Angle(S, S_2, B)